<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <?php
        // put your code here
        $result=false;
          //第三步：处理返回结果
        if($result){
           //header 页面跳转
           //成功跳转到首页
//           header ( "Location:index.php");  
            echo "<script>alert('注册成功！');location.href='http://www.baidu.com'</script>";
        }else{
          //失败继续注册 
//           header ( "Location:register.php");  
            echo "<script>alert('注册失败，请继续注册！');location.href='http://www.ifeng.com'</script>";
        }
        ?>
    </body>
</html>
